.class public Les/vv;
.super Ljava/lang/Object;
.source "NotifyHandler.java"

# interfaces
.implements Les/sv;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/vv$a;
    }
.end annotation


# instance fields
.field private final a:Ljava/util/concurrent/CopyOnWriteArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArrayList<",
            "Les/uu;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/String;",
            "Les/ev;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Landroid/os/Handler;

.field private volatile d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private volatile e:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Les/vv;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    .line 3
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Les/vv;->b:Ljava/util/concurrent/ConcurrentHashMap;

    .line 4
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Les/vv;->c:Landroid/os/Handler;

    .line 5
    invoke-virtual {p0}, Les/vv;->a()V

    return-void
.end method

.method static synthetic a(Les/vv;)Ljava/util/concurrent/CopyOnWriteArrayList;
    .locals 0

    .line 1
    iget-object p0, p0, Les/vv;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    return-object p0
.end method

.method private a(ILes/ev;)V
    .locals 3

    .line 9
    invoke-virtual {p2}, Les/dv;->g()Ljava/lang/String;

    move-result-object v0

    const/16 v1, 0x100

    if-ne p1, v1, :cond_0

    .line 10
    iget-object v1, p0, Les/vv;->b:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {p2}, Les/dv;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, p2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 11
    :cond_0
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-virtual {v1}, Ljava/io/File;->length()J

    move-result-wide v0

    invoke-virtual {p2, v0, v1}, Les/ev;->e(J)V

    .line 13
    iget-object v0, p0, Les/vv;->c:Landroid/os/Handler;

    new-instance v1, Les/vv$a;

    invoke-direct {v1, p0, p2, p1}, Les/vv$a;-><init>(Les/vv;Les/ev;I)V

    const-wide/16 p1, 0x7d0

    invoke-virtual {v0, v1, p1, p2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method static synthetic b(Les/vv;)Ljava/util/concurrent/ConcurrentHashMap;
    .locals 0

    .line 1
    iget-object p0, p0, Les/vv;->b:Ljava/util/concurrent/ConcurrentHashMap;

    return-object p0
.end method

.method private b(ILes/ev;)V
    .locals 2

    const/16 v0, 0x8

    if-eq p1, v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-virtual {p2}, Les/dv;->g()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v0

    invoke-virtual {p2, v0, v1}, Les/ev;->e(J)V

    .line 4
    iget-object v0, p0, Les/vv;->c:Landroid/os/Handler;

    new-instance v1, Les/vv$a;

    invoke-direct {v1, p0, p2, p1}, Les/vv$a;-><init>(Les/vv;Les/ev;I)V

    const-wide/16 p1, 0x7d0

    invoke-virtual {v0, v1, p1, p2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->d()[Lcom/estrongs/android/pop/utils/n$g;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 3
    array-length v1, v0

    if-nez v1, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    invoke-static {v0}, Les/hw;->a([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/List;

    move-result-object v1

    iput-object v1, p0, Les/vv;->d:Ljava/util/List;

    .line 5
    invoke-static {v0}, Les/hw;->b([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/Set;

    move-result-object v0

    iput-object v0, p0, Les/vv;->e:Ljava/util/Set;

    goto :goto_1

    .line 6
    :cond_1
    :goto_0
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Les/vv;->d:Ljava/util/List;

    .line 7
    invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;

    move-result-object v0

    iput-object v0, p0, Les/vv;->e:Ljava/util/Set;

    :goto_1
    return-void
.end method

.method public a(Les/bv;)V
    .locals 0

    return-void
.end method

.method public a(Les/gv;)V
    .locals 4

    .line 38
    invoke-virtual {p1}, Les/fv;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 39
    :cond_0
    iget-object v0, p0, Les/vv;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    if-eqz v0, :cond_5

    .line 40
    invoke-virtual {p1}, Les/gv;->h()Ljava/util/List;

    move-result-object v0

    .line 41
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/ev;

    if-nez v1, :cond_2

    goto :goto_0

    .line 42
    :cond_2
    invoke-virtual {v1}, Les/dv;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2}, Les/vv;->a(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    goto :goto_0

    .line 43
    :cond_3
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v2

    const/4 v3, 0x1

    if-ne v2, v3, :cond_4

    .line 44
    invoke-virtual {p1}, Les/fv;->c()I

    move-result v2

    invoke-direct {p0, v2, v1}, Les/vv;->a(ILes/ev;)V

    goto :goto_0

    .line 45
    :cond_4
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v2

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1

    .line 46
    invoke-virtual {p1}, Les/fv;->c()I

    move-result v2

    invoke-direct {p0, v2, v1}, Les/vv;->b(ILes/ev;)V

    goto :goto_0

    :cond_5
    return-void
.end method

.method public a(Les/hv;)V
    .locals 3

    .line 47
    invoke-virtual {p1}, Les/fv;->e()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 48
    :cond_0
    invoke-virtual {p1}, Les/hv;->h()Les/dv;

    move-result-object v0

    if-nez v0, :cond_1

    return-void

    .line 49
    :cond_1
    iget-object v1, p0, Les/vv;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_2

    return-void

    .line 50
    :cond_2
    instance-of v1, v0, Les/ev;

    if-eqz v1, :cond_5

    .line 51
    check-cast v0, Les/ev;

    .line 52
    invoke-virtual {v0}, Les/dv;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Les/vv;->a(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    return-void

    .line 53
    :cond_3
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_4

    .line 54
    invoke-virtual {p1}, Les/fv;->c()I

    move-result p1

    invoke-direct {p0, p1, v0}, Les/vv;->a(ILes/ev;)V

    goto :goto_0

    .line 55
    :cond_4
    invoke-virtual {p1}, Les/fv;->a()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_5

    .line 56
    invoke-virtual {p1}, Les/fv;->c()I

    move-result p1

    invoke-direct {p0, p1, v0}, Les/vv;->b(ILes/ev;)V

    :cond_5
    :goto_0
    return-void
.end method

.method public a(Les/uu;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 8
    iget-object v0, p0, Les/vv;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 5

    .line 14
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return v1

    .line 15
    :cond_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 16
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    const-string v3, "lgf"

    if-nez v2, :cond_1

    .line 17
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 18
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1

    const-string v2, ".thumbnails"

    .line 19
    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 20
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "skip log path for notify:"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    .line 21
    :cond_1
    invoke-static {p1}, Lcom/estrongs/fs/util/f;->l(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 22
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    return v1

    .line 23
    :cond_2
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v2, "/android/data/com.estrongs.android.pop/"

    .line 24
    invoke-virtual {v0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    return v1

    .line 25
    :cond_3
    iget-object v0, p0, Les/vv;->e:Ljava/util/Set;

    .line 26
    invoke-interface {v0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    const-string v2, "skip path:"

    if-eqz v0, :cond_4

    .line 27
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    .line 28
    :cond_4
    iget-object v0, p0, Les/vv;->d:Ljava/util/List;

    .line 29
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_5
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 30
    invoke-virtual {p1, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 31
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    .line 32
    :cond_6
    invoke-static {p1}, Les/iv;->b(Ljava/lang/String;)Landroid/util/Pair;

    move-result-object v0

    .line 33
    iget-object v1, v0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v1, Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_7

    .line 34
    iget-object p1, v0, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    return p1

    .line 35
    :cond_7
    invoke-static {p1}, Les/iv;->c(Ljava/lang/String;)Landroid/util/Pair;

    move-result-object p1

    .line 36
    iget-object v0, p1, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 37
    iget-object p1, p1, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    return p1

    :cond_8
    const/4 p1, 0x1

    return p1
.end method
